Skip to content

fix(tasks): prevent horizontal scroll in task view at narrow widths#2650

Draft
adboio wants to merge 1 commit into
mainfrom
posthog-code/fix-task-horizontal-scroll
Draft

fix(tasks): prevent horizontal scroll in task view at narrow widths#2650
adboio wants to merge 1 commit into
mainfrom
posthog-code/fix-task-horizontal-scroll

Conversation

@adboio

@adboio adboio commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Problem

On smaller window widths (e.g. the task view at 2/3 width on a 16" MacBook Pro) the task view scrolled horizontally, which should never happen.

Changes

The virtualized conversation/raw-log scroll container used overflow-auto, which enables both horizontal and vertical scrolling. Any child wider than the container (a long unwrapped line, a wide tool output) made the whole pane scroll sideways at narrow widths.

Switched it to overflow-y-auto overflow-x-hidden. Wide content already manages its own horizontal scroll within bounded children — raw log entries use a per-entry overflow-x-auto and code blocks scroll internally — so the outer virtualized container never needs to scroll horizontally.

How did you test this?

Did not run the app. Change is a one-line Tailwind class swap on the virtualized list scroll container, verified by tracing the layout: both consumers (conversation messages, raw logs) handle horizontal overflow within their own bounded children.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code from a Slack thread

The virtualized conversation/raw-log scroll container used `overflow-auto`,
which enabled horizontal scrolling whenever a child was wider than the
container. At narrow widths (e.g. the task view at 2/3 width on a 16" MBP)
this made the whole pane scroll sideways.

Switch to `overflow-y-auto overflow-x-hidden`. Wide content already manages
its own horizontal scroll within bounded children (raw log entries use a
per-entry `overflow-x-auto`, code blocks scroll internally), so the outer
virtualized container never needs to scroll horizontally.

Generated-By: PostHog Code
Task-Id: c71dfd67-8c74-489f-bbcd-904bb94d3584
@github-actions

Copy link
Copy Markdown

React Doctor could not complete this scan.

No React dependency found in /tmp/react-doctor-baseline-zvuFzR/package.json. Add "react" to dependencies (or peerDependencies) and re-run.

Reviewed by React Doctor for commit a3721f6.

@greptile-apps

greptile-apps Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(tasks): prevent horizontal scroll in..." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant